/**
 * Created with CLion.
 * Description: H1默认鸣笛
 * User: loong
 * Date: 2020-04-30
 * Time: 12:15
 */
#ifndef GOFSTUDY_HUMMERH2MODER_H
#define GOFSTUDY_HUMMERH2MODER_H
#include "HummerModel.h"
#include <iostream>
using namespace std;

class HummerH2Moder : public HummerModel{
private:
    bool AlarmFlag = true;
public:
    void setAlarmFlag(bool alarmFlag) {
        AlarmFlag = alarmFlag;
    }

protected:
    bool isAlarmFlag() override {
        return AlarmFlag;
    }
    void start() override {
        cout<<"H2 启动了!!注意避让"<<endl;
    }

    void stop() override {
        cout<<"H2 要停车了 给大爷让路！"<<endl;
    }

    void alarm() override {
        cout<<"老子是H2 hunhunhun"<<endl;
    }

    void engineBoom() override {
        cout<<"这是H2特有的引擎轰鸣声！"<<endl;
    }


};


#endif //GOFSTUDY_HUMMERH2MODER_H
